.sx__date-picker__years-view {
  margin: 0;
}

.sx__date-picker__years-accordion__expand-button {
  width: 100%;
  border-radius: 0;
  background-color: transparent;
  font-size: 1rem;
  padding: 1em;
  transition: background-color 0.2s ease-in-out;
  color: var(--sx-internal-color-text);

  .sx__is-expanded & {
    background-color: var(--sx-color-surface-container);
  }

  &:hover {
    background-color: var(--sx-color-surface-dim);
  }

  &:active {
    background-color: var(--sx-internal-color-gray-ripple-background);
  }
}

.sx__date-picker__years-view-accordion__panel {
  display: flex;
  flex-wrap: wrap;
}

.sx__date-picker__years-view-accordion__month {
  flex: 1 0 33.3333%;
  background-color: transparent;
  border: 0;
  font-size: 0.9rem;
  padding: 0.5em 0;
  border-radius: 25px;
  color: var(--sx-internal-color-text);

  &:hover {
    background-color: var(--sx-color-primary);
    color: var(--sx-color-on-primary);
  }
}
